program to print half diamond star pattern